package com.liholin.springboot.sample.exception

import com.liholin.springboot.sample.configdata.ResponseData
import lombok.EqualsAndHashCode

@EqualsAndHashCode(callSuper = true)
data class ServiceException(var errorResult: ResponseData) : RuntimeException() {

    @JvmName("getErrorResult1")
    fun getErrorResult(): ResponseData {
        return this.errorResult.apply {
            ts = System.currentTimeMillis()
        }
    }
}
